<div class="rtbm bm links">                            	
	<div class="bm_t"><h2 class="modtitle fs_b">合作媒体</h2></div>
    <div class="bm_c">
    	<div id="md_clistd">
        	<ul id="md_clistd1">
          <% @links.each do |l| %>
            <%= link_to l.linkto, :target => '_blank' do %>
            <li><img src="<%= l.image_url(:preview).to_s %>" /></li>
            <% end %>
          <% end %>    
          </ul>
          <ul id="md_clistd2">
          </ul>
<script>
                function get(id) 
                { 
                return document.getElementById(id) 
                } 
                function toleft(demo,demo1,demo2,speed) 
                { 
var speed1=speed;
demo=get(demo);
demo1=get(demo1);
demo2=get(demo2);
demo2.innerHTML=demo1.innerHTML;
function Marquees1(){
if(demo1.offsetHeight-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight;
else{
demo.scrollTop++;
}
}
var MyMars1=setInterval(Marquees1,speed1);
demo.onmouseover=function() { clearInterval(MyMars1) ;}
demo.onmouseout=function() { MyMars1=setInterval(Marquees1,speed1); }

                } 
                
                
                toleft("md_clistd","md_clistd1","md_clistd2",50);  
</script>
        </div>
    </div>      
</div>
